package service;

import entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseService {
    //根据courseID获取课程
    Course getCourseByCourseID(String courseID);

    //查询全部课程
    List<Course> getAllCourses();

    //修改课程信息
    boolean updateCourse(Course course);

    //删除课程信息
    boolean deleteCourse(String courseID);

    //新增课程
    boolean addCourse(Course course);

    //查询课程
    List<Course> getCourseByCourseIDORCourseName(String courseID, String courseName);
}
